package com.ruoyi.common.core.domain.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报损单/报溢单对象 pan_overflow_report
 * 
 * @author wlmes
 * @date 2023-11-24
 */
@ApiModel("报损单/报溢单")
public class PanOverflowReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 单号 */
    @Excel(name = "单号")
    @ApiModelProperty("单号")
    private String businessNum;

    @Excel(name = "园区")
    @ApiModelProperty("园区")
    private String area;

    /** 类型 报损单/报溢单 */
    @Excel(name = "类型 报损单/报溢单")
    @ApiModelProperty("类型 报损单/报溢单")
    private String type;

    /** 出/入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出/入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("出/入库日期")
    private Date storeTime;

    private List<PanOverflowReportDetail> detailList;

    public List<PanOverflowReportDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<PanOverflowReportDetail> detailList) {
        this.detailList = detailList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBusinessNum(String businessNum) 
    {
        this.businessNum = businessNum;
    }

    public String getBusinessNum() 
    {
        return businessNum;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStoreTime(Date storeTime) 
    {
        this.storeTime = storeTime;
    }

    public Date getStoreTime() 
    {
        return storeTime;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("businessNum", getBusinessNum())
            .append("type", getType())
                .append("area", getArea())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("storeTime", getStoreTime())
            .toString();
    }
}
